<?php
class LinksWidget extends CWidget{
	public $row;
	
	public function init(){
		
	}
	
	public function run(){
		$links = Links::model()->getLinks();
		$str = '';
		foreach($links as $v){
			$str .= '<a href="'.$v->links_url.'">'.$v->links_name.'</a>';
		}
		echo $str;
	}
}